#!/usr/bin/bash

# Constants

EVAL_BASE_PATH="."
TEST_CONTEST="test_contest"
TEST_PROBLEM="simple"

# Create directory structure

$EVAL_BASE_PATH/bin/create_contest.sh contests/$TEST_CONTEST
$EVAL_BASE_PATH/bin/create_problem.sh contests/$TEST_CONTEST/$TEST_PROBLEM

find $EVAL_BASE_PATH/testing/testdata/$TEST_PROBLEM -iname "*.in.*" -exec cp '{}' $EVAL_BASE_PATH/contests/$TEST_CONTEST/$TEST_PROBLEM/testdata \; 
find $EVAL_BASE_PATH/testing/testdata/$TEST_PROBLEM -iname "*.out.*" -exec cp '{}' $EVAL_BASE_PATH/contests/$TEST_CONTEST/$TEST_PROBLEM/testdata \; 

# Cleanup

rm -rf contests/$TEST_CONTEST
